package com.group9.handinhand.service.so;

import com.group9.handinhand.dao.model.Goods;

/**
 * Class for service of good
 *
 */
public class GoodsSO extends AbstractBaseSO {
	
	private String unit;
	
	private String itemName;
	
	private int targetAmount;
	
	private int respondedAmount;
	/**
	 * converts to model object of good.
	 * @return
	 */
	public Goods convertToModelObject() {
		Goods model = (Goods) convert(new Goods());
		return model;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public int getTargetAmount() {
		return targetAmount;
	}

	public void setTargetAmount(int targetAmount) {
		this.targetAmount = targetAmount;
	}
	
	public int getRespondedAmount() {
		return respondedAmount;
	}

	public void setRespondedAmount(int respondedAmount) {
		this.respondedAmount = respondedAmount;
	}

	@Override
	public String toString() {
		return "GoodsSO [unit=" + unit + ", itemName=" + itemName
				+ ", targetAmount=" + targetAmount + ", respondedAmount="
				+ respondedAmount + "]";
	}


}
